package com.huarui.notice.dao;

import java.util.List;

import org.ewaf.framework.model.PagingSummary;

import com.huarui.notice.Notice;

public interface INoticeDao {

	void  create(final Notice notice);
	
	boolean update(final Notice notice);
	
	Notice queryById(int noticeId);
	
	List<Notice>  queryByReceiverId(int receiveType , int receiverId );

	List<Notice> queryBySenderId( int senderId);

	public List<Notice> queryPagingNotices(Notice condition, PagingSummary summary);

	public int qqueryNoticeCount(Notice condition);

	public boolean delete(int receiverId,Integer[] ids);

	public boolean updateDealed(int receiverId, Integer[] ids, boolean dealed);
	
	
	public boolean updateReaden(int receiverId, Integer[] ids, boolean readen);
}
